const imAppSecret = 'd0f98e232112'

let Consts = {

  imAppKey: '53693f2e4b103dff2ee6056a6f11aec8',
  imAppSecret: imAppSecret,

  imAccount: 'd0f98e2321125',
  imToken: '2ad09f4e3ff7257c3e25f17fb8fc9669',

  mobile: '15614678858',
  password: 'neo5neo',
  host: 'http://oa.jnaw.top/oa',

  imAccount2: 'd0f98e2321122',
  imToken2: 'ddf1cd2baf28aa2ed16905513106afc7',

  imToTeamId: '1681724262',

  imToAccount: 'd0f98e2321123',
  imToToken: 'a4c5760ae2ff1d744c71a07ad00045fb',

  im: {
    what: {
      disconnect: -1,
      disconnectWillConnect: -2,
      receive: 1,
      notify: 2,
      connected: 10,
      synced: 11,
    },

    arg1: {
      success: 0,
      fail: 1,
    },

    arg2: {
      none: 0,

      normal: 1,
      system: 2,

      secretCount: 3,
      secretDeleteUI: 4,

      teamUpdate: 8,
      teamCreate: 9,

      teamDismiss: 10,
      teamTransfer: 11,

      teamAddMembers: 12,
      teamRemoveMembers: 13,
      teamUpdateMembers: 14,

      teamAddManagers: 15,
      teamRemoveManagers: 16,
      teamUpdateManagers: 17,

      teamChangeForSessionUpdate: 20,
    },

    custom: {
      type: 'custom',
      dpKey: 'dp-key',
      secret: 'secret',
      secretCount: 'secret-count',
      secretDeleteUI: 'secret-delete-ui',
      secretDeleteMsg: 'secret-delete-msg',
      recall: 'recall',
    },

    db: {
      prefix: 'im-' + imAppSecret + '-',
      version: 3,

      tables: {
        session: {
          name: 'session',
          key: 'session',
          // refresh: true,
          indexes: [
            {
              name: 'ts',
            },
            {
              name: 'pin',
            },
            {
              name: 'mute',
            },
          ]
        },

        message: {
          name: 'message',
          // key: 'id',
          refresh: true,
          indexes: [
            {
              name: 'id',
              unique: true,
            },
            {
              name: 'session',
            },
            {
              name: 'ts',
            },
            {
              name: 'use',
            },
            {
              name: 'read',
            },
          ]
        },
      }
    }

  },

  msgContent: {
    name: 'content',
    version: 'v1',
    text: '[content] content'
  },

  msgCustom: {
    name: 'custom',
    version: 'v1',
    text: '[custom] custom'
  },

  msgBlob: new Blob(
      [JSON.stringify({name: 'blob', version: 'v1'}, null, 2,)],
      {type: 'application/json'})
}

export default Consts;

